package com.google.gwt.gfx.client.graphics;

import com.google.gwt.gfx.client.style.FillStyle;
import com.google.gwt.gfx.client.style.StrokeStyle;
import com.google.gwt.user.client.Element;

public class Rectangle extends SimpleGraphic {

	public static Rectangle get() {
		return GraphicFactory.DEFAULT.createRectangle();
	}

	private FillStyle fillRef;

	private StrokeStyle strokeRef;

	public Rectangle(Element element) {
		super(element);

		fillRef = GraphicFactory.DEFAULT.createFillOf(this);
		strokeRef = GraphicFactory.DEFAULT.createStrokeOf(this);
	}

	public FillStyle fill() {
		return fillRef;
	}

	public StrokeStyle stroke() {
		return strokeRef;
	}

}
